using System.Collections.Generic;
using Olemas.Models;

namespace Olemas.ViewModels
{
    /// <summary>
    /// ViewModel for the Index page
    /// </summary>
    public class HomeViewModel : GlobalViewModel
    {
        
        public IEnumerable<Book> Books { get; private set; }

        /// <param name="books">Books from the database.</param>
        /// <param name="currentFaculty">The current selected faculty.</param>
        /// <param name="currentPage">The current page displayed.</param>
        /// <param name="totalPages">The number of pages the books will cover.</param>
        /// <param name="pagesRemaining">The string representation of remaining pages.</param>
        public HomeViewModel(IEnumerable<Book> books, int currentFaculty, int currentPage, int totalPages, string pagesRemaining )
        {
            this.Books = books;
            this.FacultyId = currentFaculty;
            this.CurrentPage = currentPage;
            this.NumberOfPages = totalPages;
            this.PagesRemaining = pagesRemaining;

        }
        
    }
}